package com.kingsoft.demo.rmi;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class Hello extends UnicastRemoteObject implements HelloInterface{

	
	private String message; 
	public Hello(String msg) throws RemoteException{
		message = msg;   
	}

	@Override
	public String say() throws RemoteException {
		
		System.out.println("Called by HelloClient");    
		
		return message;
	}
}
